﻿using System.Configuration;

namespace CoolCode.Web.Mvc.Configuretion
{
    /// <summary>
    /// Routing配置节
    /// </summary>
    public class RouteConfigurationSection : ConfigurationSection
    {
        public RouteConfigurationSection() {
        }

        [ConfigurationProperty("ignore", IsRequired = false)]
        public IgnoreCollection Ignore
        {
            get
            {
                return (IgnoreCollection)(this["ignore"]);
            }
        }


        [ConfigurationProperty("map", IsRequired = false)]
        public RoutingCollection Map
        {
            get
            {
                return (RoutingCollection)(this["map"]);
            }
        }

        [ConfigurationProperty("short", IsRequired = false)]
        public RoutingCollection Short {
            get { return (RoutingCollection)this["short"]; }
        }

        [ConfigurationProperty("extend", IsRequired = true)]
        public string Extend {
            get { return this["extend"].ToString(); }
        }
    }
}
